import requests


headers = {
    "Host": "gw.m.163.com",
    "user-d": "4N9qgvC1bK9l8DqzoYQqeSVth/p5Q2QxRnSoliOJqQMx/eky7uQyrZO8tnPmOT7g",
    "user-u": "",
    "accept": "*/*",
    "user-c": "5pCc57Si",
    "x-nr-trace-id": "1739157230281_10756402832_5E7B1008-C0B6-4520-BEBD-4F9C7B7D3D2A",
    "user-n": "6QlSYk8QXf0OQ4AWdVtY7/jhya3RJrFegeb7075ultGqMsUK4MKsGp2OB35xS259",
    "x-nr-ts": "1739157230283",
    "user-sid": "nHAZ/SFYEO9swvpNuwdfWKWH3LgdFD6JknMavPNq5VHO7XzlLOBnc+Bhcd5r62iy",
    "user-appid": "zbCHbGcGkGiMBRRJXmZMeA==",
    "user-da": "6rtkqGiR/7SS62/IrsvDwbpV7nCHcp+ZAZH5Hjwp3nPK0B5M/eVfdcw/9xwptur8",
    "x-b3-spanid": "0",
    "accept-language": "zh-cn",
    "user-agent": "NewsApp/113.2 iOS/12.5.7 (iPhone7,1)",
    "x-nr-sign": "13d1f8d18fa3a41f2dc92f1aff404f6a",
    "x-b3-sampled": "1"
}
url = "https://gw.m.163.com/nc/api/v1/search/flow/comp"
params = {
    "deviceId": "4N9qgvC1bK9l8DqzoYQqeSVth/p5Q2QxRnSoliOJqQMx/eky7uQyrZO8tnPmOT7g",
    "version": "113.2",
    "channel": "5pCc57Si",
    "canal": "appstore",
    "qId": "MTExNzk5Mjg0NjAwNTYwNA==",
    "tabname": "",
    "ts": "1739157230",
    "lat": "",
    "lon": "",
    "sign": "FDbMrjzW+bk6GrAk/XfSk2Cyjiue0hysBx7BGz4uv5x48ErR02zJ6/KXOnxX046I",
    "spever": "false",
    "open": "",
    "openpath": "",
    "dtype": "0",
    "start": "MA==",
    "limit": "20",
    "q": "5Y+v5Y+j5Y+v5LmQ"
}
response = requests.get(url, headers=headers, params=params)

print(response.text)
print(response)
